package com.fa4j.system.app.model;


import com.fa4j.common.base.model.AbstractCmd;
import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.web.model.AppType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "系统应用角色创建参数")
public class AppRoleCreateCmd extends AbstractCmd {

    @NotNull
    @Schema(description = "应用类型")
    private AppType appType;

    @NotBlank
    @Size(max = 32)
    @Schema(description = "角色名称")
    private String name;

    @NotBlank
    @Size(max = 16)
    @Schema(description = "角色编码")
    private String code;

    @NotNull
    @Schema(description = "角色状态")
    private CommonState state;

    @Size(max = 2048)
    @Schema(description = "菜单ID集合")
    private List<Integer> menuIds;



}
